<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" /> 
<html>
<%
	String nav_id =  randomId.GenTradeId();
	String cust_id="";	
	if( session.getAttribute("session_cust_id") != null )
	{
		cust_id = session.getAttribute("session_cust_id").toString();
	}
%>	
  <head>
    <title>导航栏管理</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="nav.js"></script>
	<script type="text/javascript" src="/program/admin/js/judgment.js" charset="UTF-8"></script>
</head>

<body>
	<h1>新增导航栏</h1>
	      <!--<table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="9%" align="center"><img src="/program/admin/index/images/ban_01.gif" /></td>
          <td width="91%" align="left">
		  <h4>您可以按“行业”或“关键字”订阅</h4>
		  <span>1、填写关键字，您将及时了解与该产品相关的所有商机。</span><br/>
		  <span>2、为了更准确订阅，建议你选择产品所属的行业大类和行业子类。</span>
		  </td>
        </tr>
      </table>!-->

	<form action="/doTradeReg.do" method="post" name="addForm">
	<input name="nav_id" id="nav_id" type="hidden" value="<%=nav_id%>" />		
	<input name="cust_id" id="cust_id" type="hidden" value="<%=cust_id%>" />	
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="15%">
				导航名称<font color="red">*</font>			</td>
			<td width="89%"><input name="nav_name" id="nav_name" maxlength="50" type="text" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this) " /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				是否显示:			</td>
			<td>
				<input name="ifshow" id="ifshow" type="radio" value="0" checked/>是
				<input name="ifshow" id="ifshow" type="radio" value="1"/>否
			</td>	
		</tr>
		
		<tr>
			<td align="right" width="15%">
				排序<font color="red">*</font>			</td>
			<td><input name="sort_order" id="sort_order" type="text" size="2" maxlength="2" value="0" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				是否打开新窗口:			</td>
			<td>
				<input name="opennew" id="opennew" type="radio" value="0"/>是
				<input name="opennew" id="opennew" type="radio" value="1" checked/>否
			</td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				链接地址<font color="red">*</font>			</td>
			<td><input name="link_url" id="link_url" type="text" maxlength="50" size="40" value="http://" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this) "/></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				子系统:			</td>
			<td>
				<input name="nav_post" id="nav_post" type="radio" value="0"/>B2B
				<input name="nav_post" id="nav_post" type="radio" value="1" checked/>团购
				<input name="nav_post" id="nav_post" type="radio" value="2"/>b2c商城
				<input name="nav_post" id="nav_post" type="radio" value="3"/>c2c商铺
			</td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="8335" />
				<input class="buttoncss" type="submit" name="tradeSub" value="提交" onClick="return checkInfo()" />&nbsp;&nbsp;
				<input class="buttoncss" type="button" name="tradeRut" value="返回" onClick="window.location.href='index.jsp';" />
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
